package com.liyujie.dyeingmachine.mobile.dao;

import com.liyujie.dyeingmachine.mobile.entity.DetectionRecordEntity;
import com.raizlabs.android.dbflow.sql.language.SQLite;

import java.util.List;

public class DetectionRecordEntityDao {


    private DetectionRecordEntityDao() {
    }

    public static DetectionRecordEntityDao getInstance() {
        return SingletonHolder.INSTANCE;
    }

    /**
     * 获取所有数据
     *
     * @return
     */
    public List<DetectionRecordEntity> getAllList() {
        return SQLite
                .select()
                .from(DetectionRecordEntity.class)
                .queryList();
    }

    private static final class SingletonHolder {
        private static final DetectionRecordEntityDao INSTANCE = new DetectionRecordEntityDao();
    }


}
